
package com.putao.album.main.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.putao.album.R;
import com.putao.album.widget.rounder.RoundImageView;



/**
 * Created by yanglun on 15/4/30.
 */
public class BabyHeaderIconView extends LinearLayout
{
    public RoundImageView header_icon_iv;
    public TextView header_icon_name_tv;
    public ImageView header_icon_gender_iv;

    public BabyHeaderIconView(Context context)
    {
        super(context);
        init();
    }

    public BabyHeaderIconView(Context context, AttributeSet attrs)
    {
        super(context, attrs);
        init();
    }

    public BabyHeaderIconView(Context context, AttributeSet attrs, int defStyle)
    {
        super(context, attrs, defStyle);
        init();
    }

    private void init()
    {
        LayoutInflater.from(getContext()).inflate(R.layout.layout_baby_header_icon_view, this);
        header_icon_iv = (RoundImageView) findViewById(R.id.header_icon_iv);
        header_icon_name_tv = (TextView) findViewById(R.id.header_icon_name_tv);
        header_icon_gender_iv = (ImageView) findViewById(R.id.header_icon_gender_iv);
    }

    public void setTypeAddBaby()
    {
        header_icon_iv.setType(RoundImageView.TYPE_CIRCLE);
    }
}
